﻿using System.Windows.Forms;
using NExplorer.Core.Commands;

namespace NExplorer.Core
{
	internal class CoreAddIn : AddIn
	{
		public CoreAddIn()
			: base("Core", "Provides core functionality")
		{}

		public override void Initialize()
		{
			AddMenuBuilder(new VerbMenuBuilder());			
			AddMenuBuilder(new ClipboardMenuBuilder());
			AddMenuBuilder(new MiscMenuBuilder());

			AddToolBarButton(new CutCommand(), Keys.Control | Keys.X);
			AddToolBarButton(new CopyCommand(), Keys.Control | Keys.C);
			AddToolBarButton(new PasteCommand(), Keys.Control | Keys.V);
			AddToolBarButton(new NewFolderToolBarCommand(), Keys.Control | Keys.N);
			AddToolBarButton(new InvertSelectionCommand());
			AddToolBarButton(new RenameCommand(), Keys.F2);
		}
	}
}
